package com.ndky;

public class MyClass {
    public int x;

    public MyClass(int y) {
        System.out.println("包com.ndky，构造MyClass");
        x = y;
    }

    public static void main(String[] args) {
        MyClass myObj = new MyClass(5);
        System.out.println(myObj.x);
    }
}

// 输出 构造MyClass
// 输出 5



